package com.example.lxq.demo.service;

import java.util.List;

import com.example.lxq.demo.dao.CarouselDao;
import com.example.lxq.demo.entities.Carousel;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CarouselService {
    
    @Autowired
    private CarouselDao carouselDao;

    public List<Carousel> carousels(){
        return carouselDao.getCarousels();
    }
}
